package com.uyii.springbootsensitive.controller;

import com.uyii.springbootsensitive.model.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {

    @GetMapping("/user")
    public User getUser(@RequestParam String email) {
        User user = new User();
        user.setEmail(email);
        return user;
    }
}